package rocky.freemanagementsystemserver.connectors;

import com.tuya.connector.api.annotations.Body;
import com.tuya.connector.api.annotations.POST;
import com.tuya.connector.api.annotations.Path;
import rocky.freemanagementsystemserver.bean.tuya.OpenDoorFreePasswordRequest
import rocky.freemanagementsystemserver.bean.tuya.TuyaDoorResult

public interface DoorConnector {


    @POST("/v1.0/devices/{device_id}/door-lock/password-ticket")
    fun getPasswordTicket(@Path("device_id") deviceId: String): TuyaDoorResult;

    @POST("/v1.0/devices/{device_id}/door-lock/password-free/open-door")
    fun openDoorFreePassword(@Path("device_id") deviceId: String, @Body request: OpenDoorFreePasswordRequest): Boolean;


}
